<div class="dialog-container mdl-shadow--8dp mdl-layout--fixed-header SMES-dialog B0220-dialog" ng-init="init();"  style="background-color: #fafafa;">
    <div class="kmi-header-row">
        <div class="header-title" ng-bind="'B0220.title' | translate"></div>
        <div class="kmi-side-btn right" ng-click="dialog.back();">
            <img src="image/icons/clear.png"></img>
            <div class="kmi-can-click"></div>
        </div>
    </div>
    <div class="kmi-layout-main-content" >
        <div class="kmi-layout-page">
            <div class="cutting" style="flex:1;padding-top: 15px;">
                <button class="mdl-button mdl-js-button kmi-checkbox" style="flex:1;margin-top: 8px;" ng-click="dialog.isEquipment_cutting();">
                    <img ng-src="{{dialog.Equipment_cutting?'image/icons/check0.png':'image/icons/check1.png'}}"></img>
                    {{'B0220.wo_no_cutting' | translate}}
                </button>
                <div class="wo_no" style="padding: 6px;border: 2px solid rgba(0, 0, 0, 0.2);">
                    <!-- 工單下料底下的checkbox -->
                    <div class="kmi-text-fields" style="flex: 1;">
                        <button class="mdl-button mdl-js-button kmi-checkbox" ng-click="dialog.isWo_no_cutting();" >
                            <img ng-src="{{!dialog.Wo_no_cutting?'image/icons/check0.png':'image/icons/check1.png'}}"></img>
                            {{'B0220.current_machine' | translate}}
                        </button>
                        <button class="mdl-button mdl-js-button kmi-checkbox" ng-click="dialog.isWo_no_cutting();" >
                            <img ng-src="{{dialog.Wo_no_cutting?'image/icons/check0.png':'image/icons/check1.png'}}"></img>
                            {{'B0220.all_machine' | translate}}
                        </button>
                        <div></div>
                    </div>
                    <div class="kmi-text-fields" style="flex: 1;">
                        <label class="label" ng-bind="'B0220.wo_no' | translate"></label>
                        <input class="value" ng-model="dialog.dialogMONo.MONo"></input>
                        <div class="tip search" ng-click="dialog.loadMONo();"><img src="image/icons/search.png"></img> </div>
                    </div>
                    <div class="kmi-text-fields" style="flex: 1;">
                        <label class="label" ng-bind="'B0220.product_no' | translate"></label>
                        <input class="value" ng-model="dialog.dialogMONo.product_no" disabled="disabled"></input>
                        <label class="label" ng-bind="'B0220.product_name' | translate"></label>
                        <input class="value" ng-model="dialog.dialogMONo.product_name" disabled="disabled"></input>
                    </div>
                </div>
            </div>
            <div class="cutting" style="flex:1;padding-top: 15px;">

                <button class="mdl-button mdl-js-button kmi-checkbox" style="flex:1;margin-top: 12px;" ng-click="dialog.isEquipment_cutting();">
                    <img ng-src="{{!dialog.Equipment_cutting?'image/icons/check0.png':'image/icons/check1.png'}}"></img>
                    {{'B0220.equipment_cutting' | translate}}
                </button>
                <div class="equipment" style="padding: 6px;border: 2px solid rgba(0, 0, 0, 0.2);">
                    
                    <div class="kmi-text-fields" style="flex: 1;margin-top: 8px;">
                        <label class="label" ng-bind="'B0220.machine_no' | translate"></label>
                        <input class="value" ng-model="dialog.machine_no" disabled="disabled"></input>
                        <label class="label" ng-bind="'B0220.machine_name' | translate"></label>
                        <input class="value" ng-model="dialog.machine_name" disabled="disabled"></input>
                    </div>
                </div>
            </div>
            <!-- 確認按鈕 -->
            <div class="btn-panel">
                <div class="kmi-button kmi-button-confrim btn-confirm" ng-click="dialog.confirm();">
                    <label ng-bind="'B0220.confirm' | translate" class="ng-binding"></label>
                    <div class="kmi-can-click"></div>
                </div>    
            </div>
        </div>
    </div>
</div>
